package org.dromara.bean.domain.vo;

import org.dromara.bean.domain.HisGoods;
import org.dromara.bean.domain.HisGoodsOrderEvaluate;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 商城订单评价视图对象 his_goods_order_evaluate
 *
 * @author Lion Li
 * @date 2024-12-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HisGoodsOrderEvaluate.class)
public class HisGoodsOrderEvaluateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderNumber;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String photo;

    /**
     * 评分
     */
    @ExcelProperty(value = "评分", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "evaluate_number")
    private Long evaluate;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "evaluate_status")
    private Long status;

    /**
     * 拒绝原因
     */
    @ExcelProperty(value = "拒绝原因")
    private String reason;


    private String memberName;

    /**
     * 图片url
     */
//    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "photo")
    private String photoUrl;

    /**
     * 评价时间
     */
    private Date createTime;

    /**
     * 会员头像地址
     */
//    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "memberPhoto")
    private String memberPhotoUrl;
    /**
     * 评价时间
     */
    private String memberPhoto;


    private Integer orderType;


    private Long goodsId;

    private HisGoods goods;
}
